<div class="control-group {$name}">
    <label class="control-label">{$tca.label}<if condition="$tca['required'] eq true"><font style="color:red">*</font></if></label>

    <div class="controls">
        <div class="input-append date {$tca.class} form_{$tca.mode}">
            <gt name="info[$name]" value="0">
                <if condition="$tca['mode'] eq 'datetime'">
                    <input size="16" type="text" name="{$name}" value="{$info[$name]|date='Y-m-d H:i:s',###}"
                           readonly="readonly" class="m-wrap"  />
                <else/>
                    <if condition="$tca['mode'] eq 'date'">
                        <notempty name="tca['YMD']">
                            <input size="16" type="text" name="{$name}" value="{$info[$name]}"
                                   readonly="readonly" class="m-wrap"  />
                        <else/>
                            <input size="16" type="text" name="{$name}" value="{$info[$name]|date='Y-m-d',###}"
                                   readonly="readonly" class="m-wrap"  />
                        </notempty>
                    <else/>
                        <input size="16" type="text" name="{$name}" value="{$info[$name]}"
                               readonly="readonly" class="m-wrap"  />
                    </if>
                </if>
            <else/>
                <input size="16" type="text" name="{$name}" value="" readonly="readonly" class="m-wrap"  />
            </gt>
            <span class="add-on"><i class="icon-remove"></i></span>
            <span class="add-on"><i class="icon-calendar"></i></span>
        </div>
        <span class="help-inline">{$tca.help}</span>
    </div>
</div>